<script>
    <% if(branch) {%>
    let bpath = ['','b','<%=branch%>'].join('/');
    <%} else {%>
    let bpath = '';
    <%}%>
    function GURL(handle,...arr){
        let h = handle.split('/');
        let m = h.shift();
        h.unshift(bpath);
        let p = h.concat(arr);
        return p.join('/');
    }
</script>
